package com.car.dal.dao.workload;


import java.util.List;

import com.car.bean.GridObj;
import com.car.bean.OrderObj;
import com.car.bean.PageObj;
import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.JsVote;
import com.car.dal.object.TgWorkload;

public class TgworkloadDaoImpl extends IbatisCommonDao<TgWorkload, Long> implements TgworkloadDao {

	public GridObj GetList(TgWorkload workload, PageObj pageObj) {
		OrderObj order = new OrderObj();
		order.setDir("desc");
		order.setSort("id");
		return super.findByPage(workload, pageObj, order);
	}
	
	public Integer getWorkloadMoney(TgWorkload workload) {
		return this.queryForInteger("getWorkloadMoney", workload);
	}
	
	public Integer getWorkloadRece(TgWorkload workload) {
		return this.queryForInteger("getWorkloadRece", workload);
	}
	
	public Integer getWorkloadReserve(TgWorkload workload) {
		return this.queryForInteger("getWorkloadReserve", workload);
	}
	
	public Integer getWorkloadTrack(TgWorkload workload) {
		return this.queryForInteger("getWorkloadTrack", workload);
	}

	@Override
	public List<TgWorkload> getWorkload(TgWorkload workload) {
		List<TgWorkload> list = this.queryForEntityList(TgWorkload.class,"getWorkload",workload);
		return list;	
	}
	

}
